package com.wkbb.common.enums;

/**
 * @author luowenyan
 * @version V1.0
 * @className SmsTypeEnum
 * @description
 * @date 2019/8/7 10:17
 */
public enum MessageSendStatusEnum {

    WAIT(1,"等发送"),

    SUCCESS(2,"发送成功"),

    FAIL(3,"发送失败"),

    DATA_ERROR(4,"数据错误");

    private MessageSendStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (MessageSendStatusEnum smsTypeEnum : MessageSendStatusEnum.values()) {
            if (smsTypeEnum.getValue().intValue()==value) {
                return smsTypeEnum.getDesc();
            }
        }
        return null;
    }
}
